| Total Complexity | 3 | 
| Total Lines | 34 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | import { BaseEndpoint } from './baseEndpoint'; | 
            ||
| 6 | |||
| 7 | /**  | 
            ||
| 8 | * Network Endpoint Class  | 
            ||
| 9 | */  | 
            ||
| 10 | export class Network extends BaseEndpoint { | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * Get the details of a network.  | 
            ||
| 14 |      * @param { number } networkID | 
            ||
| 15 |      * @return { Promise<NetworkDetailsResponse> } | 
            ||
| 16 | * @see https://developers.themoviedb.org/3/networks/get-network-details  | 
            ||
| 17 | */  | 
            ||
| 18 |     public async details(networkID: number): Promise<NetworkDetailsResponse> { | 
            ||
| 19 |         return this.sendGetRequest(`network/${networkID}`); | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * Get the alternative names of a network.  | 
            ||
| 24 |      * @param { number } networkID | 
            ||
| 25 |      * @return { Promise<NetworkAlternativeNamesResponse> } | 
            ||
| 26 | * @see https://developers.themoviedb.org/3/networks/get-network-alternative-names  | 
            ||
| 27 | */  | 
            ||
| 28 |     public async alternativeNames(networkID: number): Promise<NetworkAlternativeNamesResponse> { | 
            ||
| 29 |         return this.sendGetRequest(`network/${networkID}/alternative_names`); | 
            ||
| 30 | }  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * Get the TV network logos by id.  | 
            ||
| 34 |      * @param { number } networkID | 
            ||
| 35 |      * @return { Promise<NetworkImagesResponse> } | 
            ||
| 36 | * @see https://developers.themoviedb.org/3/networks/get-network-images  | 
            ||
| 37 | */  | 
            ||
| 38 |     public async images(networkID: number): Promise<NetworkImagesResponse> { | 
            ||
| 39 |         return this.sendGetRequest(`network/${networkID}/images`); | 
            ||
| 40 | }  | 
            ||
| 43 |